<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">原生的actionsheet</h1>
		</header>
		<div class="mui-content">
			<button id="btn">按钮</button>
		</div>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
			var btn = document.getElementById("btn")
			btn.onclick = function() {
				var btnArray = [{
					title: "分享到微博"
				}, {
					title: "分享到微信朋友圈"
				},{
					title: "分享给朋友"
				}
				]
				plus.nativeUI.actionSheet({
					title: "分享到",
					cancel: "取消",
					buttons: btnArray
				}, function(e) {
					var index = e.index;
					mui.toast(index)
					switch(index) {
						case 1://
							break;
						case 2://
							break;
						case 3://
							break;
					}
				})
			}
		</script>
	</body>

</html>